home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / win / vb / fixmenu.exe / MENU.DOC < prev    next >
Encoding:
Text File  |  1991-09-10  |  1005 b   |  25 lines

  1.  
  2.                            Modifying Menu Items
  3.                            --------------------
  4.  
  5.                              by Ted M. Young
  6.  
  7.                                 09/10/91
  8.  
  9.                              CIS: 76703,4343
  10.                        Internet: tedyoung@panix.com
  11.  
  12. In Visual Basic, there's an undocumented way to change the "Separator Bar"
  13. status of a Menu Item using the .Separator property.  However, since it was
  14. undocumented, I ended up writing the enclosed code and demo app to get around
  15. what I thought was a "bug" in VB.  The code is now essentially only useful for
  16. educational purposes, so in that respect I feel it's worth spreading around.
  17. I've broken down the code into a few functions which you might find useful for
  18. getting the handle to a menu, getting the menu item ID number, etc.
  19.  
  20. If you have any questions, don't hesitate to ask.  If there are any problems
  21. with the code, please tell me ASAP and I'll fix 'em (if I can).
  22.  
  23.                - Ted
  24.  
  25.